/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ${USER}
 * Date: ${YEAR}-${MONTH}-${DAY}
 * Time: ${TIME}
 */
public class Main {
    public static int max(int x,int y){
        if(x > y){
            int tamp = x;
            x = y;
            y = tamp;
        }
        return y;
    }
    public static int max(int x,int y,int z){
        if(x > y){
            int tamp = x;
            x = y;
            y = tamp;
        }
        if( y > z){
            int tamp = y;
            y = z;
            z = tamp;
        }
        return  z;
    }
    public static void main(String[] args) {
        int a = 2,b = 4,c = 3;
        System.out.println(max(a, b));
        System.out.println(max(a, b, c));
    }
}